// src/api/ytj/pos.js
import request from '@/utils/request.js'

// 查询体打印机服务点列表
export function listYtjPos(query) {
  return request({
    url: '/ytj/pos/list',
    method: 'get',
    params: query
  })
}

// 查询体打印机服务点详细
export function getYtjPos(id) {
  return request({
    url: '/ytj/pos/' + id,
    method: 'get'
  })
}

// 新增体打印机服务点
export function addYtjPos(data) {
  return request({
    url: '/ytj/pos',
    method: 'post',
    data: data
  })
}

// 修改体打印机服务点
export function updateYtjPos(data) {
  return request({
    url: '/ytj/pos',
    method: 'put',
    data: data
  })
}

// 删除体打印机服务点
export function delYtjPos(id) {
  return request({
    url: '/ytj/pos/' + id,
    method: 'delete'
  })
}
